<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
    <link rel="icon" type="image/x-icon" href="/zf/images/favicon.ico">
    <meta charset="UTF-8">
    <title>房屋租赁系统</title>
    <link rel="stylesheet" type="text/css" href="/zf/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="/zf/css/main.css"/>
    <script type="text/javascript" src="/zf/js/libs/modernizr.min.js"></script>
    <script type="text/javascript" src="/zf/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="/zf/js/jquery-ui-datepicker.js"></script>
    <script type="text/javascript" src="/zf/js/jquery.validate.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/zf/css/jquery-ui.css"/>
    <style>


        .error {

            font-size: 13px;
            color: red;

        }

    </style>
    <script type="text/javascript">
        $().ready(function () {
            // 在键盘按下并释放及提交后验证提交表单

            $("#date").datepicker();
            $("#myform").validate({

                rules: {
                    date: {
                        required: true,
                    },
                    price: {
                        required: true,
                        min: 1
                    }
                },
                messages: {
                    date: {
                        required: "租金交付截止日期不能为空",
                    },
                    price: {
                        required: "应缴租金不能为空",
                        min: "请输入正确的租金"
                    }
                }
            });
        })


    </script>

</head>
<body>

<div class="result-title">
    <h1>添加收租信息</h1>
</div>
<div class="result-content">
    <div class="sidebar-title">
        <form action="/zf/paid/inserttopaid" method="post" id="myform" name="myform" enctype="multipart/form-data">
            <table class="insert-tab" width="100%">
                <tbody>
                <th><i class="require-red">*</i>房屋id：</th>
                <td>
                    <input class="common-text required" value="${zulist.house_id}" id="house_id" name="house_id"
                           size="50" type="text" readonly>
                </td>
                </tr>
                <tr>
                    <th><i class="require-red">*</i>地址：</th>
                    <td><input class="common-text" name="address" value="${zulist.address }" id="address" size="50"
                               type="text" readonly></td>
                </tr>
                <tr>
                    <th><i class="require-red">*</i>租客姓名：</th>
                    <td><input class="common-text" name="name" value="${zulist.userlist.name }" id="name" size="50"
                               type="text" readonly></td>
                </tr>
                <tr>
                    <th><i class="require-red">*</i>租金交付截止日期：</th>
                    <td><input class="common-text" name="date" value="" id="date" size="50" type="text" readonly></td>
                </tr>
                <tr>
                    <th><i class="require-red">*</i>应缴租金：</th>
                    <td><input class="common-text" name="price" value="" id="zuke" size="50" type="text"></td>
                </tr>
                <input type="hidden" name="userlist_id" id="userlist_id" value="${zulist.userlist_id}"/>
                <tr>
                    <th></th>
                    <td>
                        <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                        <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                    </td>
                </tr>
                <tr>
                    <font id="error" color="red">${error }</font>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
</div>

</body>
</html>